package com.dnui.seven2.entity;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName buyshow
 */
@Data
public class Buyshow implements Serializable {
    /**
     * 
     */
    private Long id;

    /**
     * 
     */
    private Long showId;

    /**
     * 
     */
    private Long userId;

    /**
     * 
     */
    private LocalDateTime buyshowTime;

    /**
     * 
     */
    private Integer showNumber;

    /**
     * 
     */
    private String showImage;

    /**
     * 
     */
    private String name;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Buyshow other = (Buyshow) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getShowId() == null ? other.getShowId() == null : this.getShowId().equals(other.getShowId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getBuyshowTime() == null ? other.getBuyshowTime() == null : this.getBuyshowTime().equals(other.getBuyshowTime()))
            && (this.getShowNumber() == null ? other.getShowNumber() == null : this.getShowNumber().equals(other.getShowNumber()))
            && (this.getShowImage() == null ? other.getShowImage() == null : this.getShowImage().equals(other.getShowImage()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getShowId() == null) ? 0 : getShowId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getBuyshowTime() == null) ? 0 : getBuyshowTime().hashCode());
        result = prime * result + ((getShowNumber() == null) ? 0 : getShowNumber().hashCode());
        result = prime * result + ((getShowImage() == null) ? 0 : getShowImage().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", showId=").append(showId);
        sb.append(", userId=").append(userId);
        sb.append(", buyshowTime=").append(buyshowTime);
        sb.append(", showNumber=").append(showNumber);
        sb.append(", showImage=").append(showImage);
        sb.append(", name=").append(name);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}